package com.cjh.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cjh.pojo.Order;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cjh
 * @since 2020-12-23
 */
public interface OrderService extends IService<Order> {

    boolean insertOrder(Order order);

    List<Order> selectOrdersByUserId(Integer userId);

    List<Order> selectUntreatedOrders(Order order);

    Integer getOrderNumber(Integer userId);

    Integer getOrderCountByTypeName(String typeName);

}
